//
//  UIResponder+Test.m
//  练习_11.16_2
//
//  Created by rimi1 on 2016/11/16.
//  Copyright © 2016年 Wangxingqian. All rights reserved.
//

#import "UIResponder+CircleAnimation.h"
#import "AnimationView.h"

static NSInteger count_ = 0;

@implementation UIResponder (Test)

- (void)showCircleAnimationWithTitle:(NSString *)title {
    count_++;
    if (count_ == 1) {
        [[AnimationView sharedAnimation] showAnimationWithTitle:title];
    }
}

- (void)hideCircleAnimation {
    count_--;
    if (count_ == 0) {
        [[AnimationView sharedAnimation] hideAnimation];
    }
}


@end















